<?php

namespace App\Http\Controllers\Api;

use App\Services\UploadService;
use Illuminate\Http\Request;
use Illuminate\Validation\Rule;

class UploadController extends Controller
{
    /**
     * 图片上传
     * @param Request $request
     * @param UploadService $service
     * @return mixed
     */
    public function store(Request $request, UploadService $service)
    {
        return $this->success($service->upload($request));
    }
}
